angular.module('faApp')
  .service('simuOrderService', [ 'ajaxService',function (ajaxService) {

    this.list = function (cfg) {
      cfg.oType = '02';
      return ajaxService.post(ajaxService.getApiUri("SIMU_ORDER_LIST"),cfg || {});
    };  
    this.listByProId = function (cfg,id) {
      cfg.productId=id;
      return ajaxService.jsonp(ajaxService.getApiUri("SIMU_ORDER_PROID_LIST"),cfg || {});
    };  
    
    this.edit = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("SIMU_ORDER_EDIT"),cfg || {});
    };  

    this.query = function (cfg) {
      return ajaxService.post(ajaxService.getApiUri("SIMU_ORDER_LIST"),cfg);
    };  
    this.queryOrderList=function(cfg){
      return ajaxService.post(ajaxService.getApiUri("ORDER_FOLLOW_UP_LIST"),cfg || {});
    } 

}]);
 




